package cn.script.game.dup.synthetic;

import cn.script.call_api.AfterApi;
import cn.script.call_api.BeforeApi;
import cn.script.domain.RangePoint;
import cn.script.game.GameOpt;
import cn.script.game.dup.AbstractOpt;

/**
 * 勋章合成
 *
 * @author 周永波
 */
public class MedalSynthetic extends AbstractOpt {


    public MedalSynthetic(String optName, GameOpt go) {
        super(optName, go);
    }

    @Override
    protected BeforeApi beFore() {
        return () -> {
            this.go.openBox();
            return 1;
        };
    }

    @Override
    protected AfterApi after() {
        return null;
    }

    @Override
    public void launch() {
        RangePoint boxRp = RangePoint.rp(130, 132, 667, 469);
        this.go.text_click("VIP", boxRp);
        this.go.text_click("首饰", boxRp);

    }
}
